package com.primeton.eos.oss.model.dao;

import org.springframework.stereotype.Repository;
import com.eos.spring.dao.AbstractDatabaseDao;
import com.eos.spring.dao.CriteriaBuilder;
import com.eos.system.utility.PageResultList;
import com.primeton.eos.oss.model.newdataset.AfcOrg;

@Repository
public class AfcOrgDao extends AbstractDatabaseDao {

    public PageResultList<AfcOrg> queryAfcOrgsWithPage(String code,  int pageSize, int pageIndex) {
        CriteriaBuilder cb = new CriteriaBuilder(AfcOrg.QNAME);

  		if(null!=code&&!"".equals(code)){
 			cb.and("code", code);
 		}
 		return queryEntitiesByCriteriaWithPage(cb.build(), pageIndex, pageSize);
	}
}






